package com.ganee.agora.viewmodel

import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.ganee.agora.model.InsertActivityEntity
import com.ganee.agora.repository.*
import com.ganee.baselib.httprequest.callback.RequestCallback

import com.ganee.baselib.mvvmlibrary.base.BaseRepository
import com.ganee.baselib.mvvmlibrary.base.BaseViewModel
import okhttp3.RequestBody

class VideoPlayerViewModel(application: Application) : BaseViewModel<VideoPlayerRepository>(application) {

    var url = MutableLiveData<String>()

    override fun getRepository(): VideoPlayerRepository {
        return VideoPlayerRepository(this)
    }


    //上传文件
    fun postUploadFile(body: RequestBody) {
//        mRepository.postUploadFile(body, RequestCallback<String> { entity ->
//            url.value = entity
//        })
    }
}
